package Interface;


public class Test implements AInterface{
    @Override
    public void hi() {
        System.out.println("hihihi");
    }

    public static void main(String[] args) {
        Camera camera = new Camera();
        Phone phone = new Phone();
        Computer computer = new Computer();
        computer.work(phone);//把手机接入接口
        System.out.println("===============");
        computer.work(camera);//把相机接入接口


    }
}
